package com.ycd.feigns;

import com.ycd.domain.Result;
import com.ycd.domain.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

// store服务feign接口
@FeignClient(value = "store-server")
@RequestMapping("/store")
public interface StoreFeignClient {

    /**
     * store保存方法
     * @param store
     * @return
     */
    @RequestMapping(value="/save", method = RequestMethod.POST)
    void save(@RequestBody Store store);
}
